package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Role;
import com.jojo.bubble.dao.RoleDao;
import com.jojo.bubble.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 角色表(Role)表服务实现类
 *
 * @author jojo
 * @since 2023-08-21 04:46:44
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleDao roleDao;

    @Override
    public int count(Role record) {
        return this.roleDao.count(record);
    }

    @Override
    public int insert(Role record) {
        return this.roleDao.insert(record);
    }

    @Override
    public int update(Role record) {
        return this.roleDao.update(record);
    }

    @Override
    public Role getInfo(int id) {
        return this.roleDao.queryByType(id);
    }

    @Override
    public List<Role> getList(Role record) {
        return this.roleDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.roleDao.delete(id);
    }
}
